package com.wyl.controller

import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping

@Controller
@RequestMapping("/user")
class UserController {
    @GetMapping("/t1/{name}")
    fun test1(@PathVariable name: String, model: Model): String {
        println(name)
        model.addAttribute("msg", name)
        return "test"
    }
}